package example.pattern.prototype;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Prototype prototype = new PrototypeImpl(100,100);
		Prototype p;
		for (int i = 1; i <= 5; i++) {
			try {
				p = prototype.clone();
				p.setX(p.getX() * i);
				System.out.println(p + " " +  p.content());
			} catch (CloneNotSupportedException e) {
				e.printStackTrace();
			}
		}

	}

}
